<?php
require_once(MODEL_PATH.'/MAPI/GCM.php');

class Model_MAPI_GCM_ipad2011 extends Model_MAPI_GCM {

	protected $_serverApiKey = 'AIzaSyALHHFAlcszUiDboBJdqy1X_MacDXAhw6w';	// api key

	private   $production_table = 'ipad2011_push_token_android';
	private   $sandbox_table    = 'ipad2011_push_token_android_sandbox';

	protected $debug = true;

	//Override
	public function __construct($h_param) {
		$dbh_w = $h_param['dbh'];
		$mode = $h_param['mode'];
		
		if ($mode == 'production'){
			$table = $this->production_table;
		} else {
	  		$mode = 'sandbox';
			$table = $this->sandbox_table;
		}
		parent::__construct($dbh_w, $mode, $table, 1);
	}
	
}
?>